import pandas as pd

from pandas import to_datetime
#读取文件数据
data_df = pd.read_csv('../data/data-11.csv')

#按照日期字段删除多余符号
for i in range(len(data_df['record_time'])):
    data_df['record_time'][i] = str(str(data_df['record_time'][i]).split('.')[0]).replace('T',' ')

#把新的数据写入文件
data_df.to_csv('../data/data.csv',mode='a+',index=False)